<template>
  <div class="navbar-tab-container">
    <van-nav-bar
      :title="title"
      v-if="title"
    />
  </div>
</template>

<script>
import { NavBar } from 'vant';
export default {
  name: 'NavbarForTab',
  components: {
    [NavBar.name]: NavBar
  },
  data() {
    return {
      title: '长沙长泰智能装备云平台'
    };
  },
  methods: {
    onClickLeft() {
      this.$router.back();
    }
  }
};
</script>

<style lang="scss" scoped>
.navbar-tab-container {
  flex-shrink: 0;
}
</style>